<h1>Blog posts</h1>

<ul>
<?php 
	foreach ($posts as $post):
?>
	<li>
		<?php 
			echo $this->Html->link($post['Post']['title'],
									array('controller' => 'posts', 'action' => 'detail', $post['Post']['id']));
									
			echo $this->Html->link('[del]',
									array('controller' => 'posts', 'action' => 'delete', $post['Post']['id']));
		?>
	</li>
<?php		
	endforeach;
	echo $this->Html->link('Add post', array('controller' => 'posts', 'action' => 'add'));
?>
</ul>
